import 'package:flutter/material.dart';
import 'package:learn_animations/animations/zdy_route_trnsform_animation.dart';

import 'file:///Users/yeweihui/Desktop/Flutter%E4%B9%8B%E8%B7%AF/%E7%AA%81%E5%87%BB%E4%B9%8B%E8%B7%AF/%E4%B8%8D%E6%98%93%E7%A7%AF%E7%A1%85%E6%AD%A5/flutter_animations/learn_animations/lib/pages/transform_second_page.dart';

class TransformFirstPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(
          "一",
          style: TextStyle(color: Colors.black54, fontSize: 18),
        ),
      ),
      body: Center(
        child: GestureDetector(
          onTap: () {
            Navigator.of(context)
                .push(ZdyRouteSliderTransform(TransformSecondPage()));
          },
          child: Container(
            width: 100,
            height: 50,
            decoration: BoxDecoration(
                color: Colors.black,
                borderRadius: BorderRadius.all(Radius.circular(8))),
            child: Text(
              "跳转",
              style: TextStyle(color: Colors.white, fontSize: 15),
            ),
          ),
        ),
      ),
    );
  }
}
